<?php
use frontend\assets\AppAsset;
use yii\bootstrap\ActiveForm;

AppAsset::register($this);
$this->title = '修改密码';
$this->params['breadcrumbs'][] = $this->title;
$image_bath_url = Yii::$app->params['imageBathUrl'];
?>
<?php
AppAsset::addCss($this,$image_bath_url."/static/pc/css/user-center/user-center.css");
AppAsset::addCss($this,$image_bath_url."/static/pc/css/user-center/user-center-zl.css");
?>
    <section class="user_center_wrap mt50">
        <div class="w">
            <div class="user_center_title br4">
                <h1 class="h1">会员中心</h1>
            </div>
            <div class="user-center-w mt">
                <!-- 左侧菜单 -->
                <?= $this->render('customer-menu') ?>
                <div class="user-center-right">
                    <h2 class="h2">修改密码</h2>
                    <div class="user_center_form mt20 updata_form" id="updata_form">
                        <?php
                        $form = ActiveForm::begin(['id' => 'update-password-form','action'=>'/customer/modify-password','method'=>'post']);
                        ?>

                        <?= $form->field($model, 'oldPwd',['template'=>'<div class="input_group p_input user_passwrod form_password_group"><label class="label">当前登录密码:</label>{input}</div>'])
                            ->textInput(['type'=>'password','class' => 'js_password','placeholder'=>'当前登录密码']) ?>

                        <!--<div class="input_group p_input user_passwrod form_password_group">
                            <label class="label">当前登录密码:</label>
                            <input type="text" class="js_password"/>
                        </div>-->
                        <?= $form->field($model, 'pwd',['template'=>'<div class="input_group p_input user_new_passwrod "><label class="label">新的登录密码:</label>{input}</div>'])
                            ->textInput(['type'=>'password','class' => 'js_new_password','placeholder'=>'输入新密码']) ?>
                        <!--<div class="input_group p_input user_new_passwrod ">
                            <label class="label">新的登录密码:</label>
                            <input type="text" class="js_new_password"/>
                        </div>-->

                        <?= $form->field($model, 'rePwd',['template'=>'<div class="input_group p_input user_new_passwrod_sure form_passwordsure_group"><label class="label">确认新的登录密码:</label>{input}</div>'])
                            ->textInput(['type'=>'password','class' => 'js_password_sure','placeholder'=>'确认新密码']) ?>
                        <!--<div class="input_group p_input user_new_passwrod_sure form_passwordsure_group">
                            <label class="label">确认新的登录密码:</label>
                            <input type="text" class="js_password_sure" />
                        </div>-->
                        <?php ActiveForm::end(); ?>
                        <div class="mt30">
                            <span class="tipinfo"></span>
                            <button type="button" class="user_sure updata_btn btn update_password_btn">确认<i class="icon arrow_icon"></i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </section>
<?php
AppAsset::addJs($this,$image_bath_url."/static/common/jquery.cookie.js");
AppAsset::addJs($this,$image_bath_url."/static/pc/js/formValidate.js?ver=001");
AppAsset::addJs($this,$image_bath_url."/static/pc/js/user-center-passwordupdata.js");
?>